<include file="Public/ADMIN/HTML/Admin_header/admin_first_head.html" />
<title>创意评论管理{$Think.const.TITLE}</title>
<include file="Public/ADMIN/HTML/Admin_header/admin_css_and_js.html" />
<include file="Public/ADMIN/HTML/Admin_header/admin_title.html" />
<include file="Public/ADMIN/HTML/Admin_header/admin_middle_list.html" />
<script>
    function delIdeaman(xid){ 
			var gradename = xid;
			address = "{$Think.const.DOMAIN_NAME}Admin/Comment/deleIdeaManagement/id/"+gradename; // 设置$.get调用路径
			var delTr = document.getElementById(xid);                                  // 获取动态的表格ID
			$.get(address,function(str){                                               // 方法不太明白，大概意思是获取$.get返回的值
			if(str==0){                                                                // 如果返回的时0的话就证明是对的
				ZENG.msgbox.show("删除成功！", 4, 1000);
				delTr.parentNode.removeChild(delTr);                                   // 删除该行
			}else{                                                                     // 其他情况都是原密码错误    
				ZENG.msgbox.show("删除失败！", 5, 2000);
			}
		    });	 
	}
</script>
<div class="container-fluid main-content">
	<!-- DataTables Example -->
	<div class="row">
		<div class="col-lg-12">
			<div class="widget-container fluid-height clearfix">
				<div class="heading">
					<i class="icon-reorder"></i>创意评论管理
				</div>
				<div class="widget-content padded clearfix">
					<table class="table table-bordered table-striped dataTable"
						id="datatable-editable">
						<thead>
							<th style="width: 8%; text-align: center">编号</th>
							<th style="width: 20%; text-align: center">创意标题</th>
							<th style="width: 40%; text-align: center">评论内容</th>
							<th class="hidden-xs" style="width: 14%; text-align: center">评论时间</th>
							<th class="hidden-xs" style="width: 10%; text-align: center">评论人</th>
							<th class="hidden-xs" style="width: 8%; text-align: center">操作</th>
						</thead>
						<tbody>
							<assign name="num" value="1" />
							<volist name="ideas" id="vo">
							<tr id="{$vo.cid}">
								<td style="text-align: center">{$num++}</td>
								<td style="text-align: center"><a
									href="{$Think.const.DOMAIN_NAME}Home/Idea/details/iid/{$vo.iid}"
									target="_blank">{$vo.idea}</a></td>
								<td class="hidden-xs" style="text-align: center">{$vo.content}</td>
								<td class="hidden-xs" style="text-align: center">{$vo.cdate}</td>
								<td class="hidden-xs" style="text-align: center">{$vo.cuser}</td>
								<td class="actions" style="text-align: center; width: 3%">
									<div class="action-buttons" style="margin: 0 0 0 -18px">
										<a class="table-actions" href="javascript:void(0);"
											onclick="if(confirm('确定删除么？')==false){history.go(0); return false;}else{javascript:delIdeaman({$vo.cid})}"><i
											class="icon-trash"></i></a>
									</div>
								</td>
							</tr>
							</volist>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<!-- end DataTables Example -->
</div>
</div>
</body>
</html>